package com.ygy.service;

import com.ygy.entity.Messages;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 留言表 服务类
 * </p>
 *
 * @author Ye
 * @since 2024-03-14
 */
public interface IMessagesService extends IService<Messages> {
     List<Messages> getUnreadMessagesByReceiver(String username);
     List<Messages> listAllByUserId(Integer userId);
}
